from django.urls import path
from . import views
from django.views.generic import RedirectView
app_name = 'myapp'
urlpatterns = [
    path('', views.sentence, name='sentence'),
    path('sum/<int:sum1>/<int:sum2>/',views.login,name='login'),
    path('post-<int:post_id>/', views.post, name='post'),
    path('redierct/', views.sum, name='sum'),
    path('redierct-home/', RedirectView.as_view(url='/',permanent=True),name='redirect-home')
]